project(calc)

cmake_minimum_required(VERSION 2.6)

set(TRUNK_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(P1_BIN_DIR "${TRUNK_DIR}/bin")
set(P1_LIBS_DIR "${TRUNK_DIR}/lib")
set(P1_TESTS_DIR "${TRUNK_DIR}/tests")

set(EXECUTABLE_OUTPUT_PATH ${P1_BIN_DIR})
set(LIBRARY_OUTPUT_PATH ${P1_LIBS_DIR})
set(TEST_OUTPUT_PATH ${P1_TESTS_DIR})

add_library(udp SHARED udp.cpp)
add_library(sockets_ SHARED sockets_.cpp)
add_library(operacion SHARED operacion.cpp)

add_executable(server server.cpp)
add_executable(client client.cpp)

target_link_libraries(server udp sockets_ operacion)
target_link_libraries(client udp sockets_)


